void Start() { p0 = p1 = p2 = p3 = transform.position; p1 = RandomizePoint(p1); p2 = RandomizePoint(p2); p3 = RandomizePoint(p3); rb = GetComponent <Rigidbody>(); playerInstance = Player_PC.instance; }
private void Awake() { if (instance != null) { Destroy(gameObject); return; } instance = this; GetAndImplementrPerks(); }
// Use this for initialization private void Start() { playerInstance = Player_PC.instance; enemyAgent = GetComponent <NavMeshAgent>(); }
public void SetPlayer(Player_PC _player) { player = _player; }
void Start() { player = GetComponent <Player_PC>(); }
private void Start() { player = Player_PC.instance; aux = Vector3.zero; }