Esempio n. 1
0
    void Awake()
    {
        tankHealth = new TankHealth(property);

        EnemySprite.sprite = property.MiniMapIcon;
        player             = GameObject.FindWithTag("Player");

        StateMachine = new EnemyStateMachine(this);
        StateMachine.InitState();

        currentTarget = transform.position;
    }