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