Esempio n. 1
0
 void Start()
 {
     target            = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     agent             = GetComponent <NavMeshAgent>();
     changePathTimeCnt = changePathTime;
     lightSource       = WeakenLight.instance;
     player            = Player.instance;
     enemy             = Enemy.instance;
 }
Esempio n. 2
0
 void Start()
 {
     playerStat = new PlayerStat();
     isCaught   = false;
     isSpeedUp  = false;
     //canChop = false;
     action      = ActionLog.instance;
     lightSource = WeakenLight.instance;
 }
Esempio n. 3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 4
0
    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;
    }
Esempio n. 5
0
 public void Start()
 {
     inventory   = Inventory.instance;
     lightSource = WeakenLight.instance;
     action      = ActionLog.instance;
 }