Exemplo n.º 1
0
 void Start()
 {
     p0             = p1 = p2 = p3 = transform.position;
     p1             = RandomizePoint(p1);
     p2             = RandomizePoint(p2);
     p3             = RandomizePoint(p3);
     rb             = GetComponent <Rigidbody>();
     playerInstance = Player_PC.instance;
 }
Exemplo n.º 2
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }
        instance = this;

        GetAndImplementrPerks();
    }
Exemplo n.º 3
0
    // Use this for initialization

    private void Start()
    {
        playerInstance = Player_PC.instance;
        enemyAgent     = GetComponent <NavMeshAgent>();
    }
Exemplo n.º 4
0
 public void SetPlayer(Player_PC _player)
 {
     player = _player;
 }
Exemplo n.º 5
0
 void Start()
 {
     player = GetComponent <Player_PC>();
 }
Exemplo n.º 6
0
 private void Start()
 {
     player = Player_PC.instance;
     aux    = Vector3.zero;
 }