Пример #1
0
 private void Awake()
 {
     if (_gameEntityTagComponent == null)
     {
         _gameEntityTagComponent = GetComponent <GameEntityTagComponent>();
     }
 }
 private void Reset()
 {
     if (gameEntityTagComponent == null)
     {
         gameEntityTagComponent = GetComponent <GameEntityTagComponent>();
     }
     if (healthComponent == null)
     {
         healthComponent = GetComponent <EntityHealthComponent>();
     }
 }