OldBlueWater/BlueWater/Assets/02.Scripts/HouseInfo.cs
NTG 2da1b44a53 Closes #70 #79 #87
+ Layer Boids, Boid로 분리
+ Fish의 로직을 Boids(군집) 알고리즘으로 변경
+ 군집에 이펙트를 통해 낚시 가시성 추가
+ 테스트용 군집 애니메이션 추가
+ Epic Toon EX 에셋의 스크립트 수정 버전
  ㄴ ParticleWeapon(Layer 선택, UnityEvent Hit 델리게이트 기능 추가) 사용
+ Cannon의 x축 회전 고정
+ Cannon이 공격한 Layer에 따른 기능 변경
+ DataManager에 PlayerInventory 추가
  ㄴ 초창기에 사용한 코딩 삭제
+ 초창기에 사용했던 스크립트들 일부 정리
2024-01-03 06:39:53 +09:00

74 lines
1.9 KiB
C#

// using Sirenix.OdinInspector;
// using UnityEngine;
//
// // ReSharper disable once CheckNamespace
// namespace BlueWaterProject
// {
// [SelectionBase]
// public class HouseInfo : MonoBehaviour, IDamageable
// {
// #region Property and variable
//
// [SerializeField] private IslandInfo islandInfo;
//
// [SerializeField] private float maxHp = 500f;
//
// [DisableIf("@true")]
// [SerializeField] private float currentHp;
//
// #endregion
//
// #region Unity built-in function
//
// private void Awake()
// {
// SetCurrentHp(maxHp);
// }
//
// private void OnDisable()
// {
// RemoveIslandInfo();
// }
//
// #endregion
//
// #region Interface property and function
//
// public void TakeDamage(float attackerPower, Vector3? attackPos = null)
// {
// var changeHp = Mathf.Max(currentHp - attackerPower, 0);
// SetCurrentHp(changeHp);
//
// // 건물 파괴
// if (changeHp == 0f)
// {
// Die();
// return;
// }
// }
//
// public void Die()
// {
// Destroy(gameObject);
// RemoveIslandInfo();
// }
//
// #endregion
//
// #region Custom function
//
// private void RemoveIslandInfo()
// {
// if (islandInfo == null) return;
//
// islandInfo.RemoveListElement(islandInfo.HouseList, transform);
// islandInfo.RemoveListElement(islandInfo.TargetAllList, transform);
// }
//
// public float GetCurrentHp() => currentHp;
// public void SetCurrentHp(float value) => currentHp = value;
// public void SetIslandInfo(IslandInfo island) => islandInfo = island;
//
// #endregion
// }
// }