Exemplo n.º 1
0
    // Start is called before the first frame update


    void Start()
    {
        _playerTarget = GameObject.FindWithTag("PlayerII").GetComponent("PlayerIIMovment") as PlayerIIMovment;

        _batTarget = GameObject.FindWithTag("Bat").GetComponent("Bat") as Bat;
    }
 // Start is called before the first frame update
 private void Awake()
 {
     _target    = GameObject.FindWithTag("PlayerII").GetComponent("PlayerIIMovment") as PlayerIIMovment;
     __target   = GameObject.FindWithTag("PlayerII").GetComponent("PlayerAttackmele") as PlayerAttackmele;
     _batTarget = GameObject.FindWithTag("Bat").GetComponent("Bat") as Bat;
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     playerPosition = gameObject.GetComponent("PlayerIIMovment") as PlayerIIMovment;
 }