void Start() { target = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); agent = GetComponent <NavMeshAgent>(); changePathTimeCnt = changePathTime; lightSource = WeakenLight.instance; player = Player.instance; enemy = Enemy.instance; }
void Start() { playerStat = new PlayerStat(); isCaught = false; isSpeedUp = false; //canChop = false; action = ActionLog.instance; lightSource = WeakenLight.instance; }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
private void Start() { action = ActionLog.instance; lightSource = WeakenLight.instance; player = Player.instance; audioSource = GetComponent <AudioSource>(); playChasingClip = false; isFrozen = false; isChasing = false; canAttack = false; isDead = false; isVisible = true; isWalking = false; isVulnerable = false; }
public void Start() { inventory = Inventory.instance; lightSource = WeakenLight.instance; action = ActionLog.instance; }