Пример #1
0
    private void Start()
    {
        itemD       = GameObject.Find("DetectionZone").GetComponent <ItemDetection>();
        enclumeAnim = GetComponent <Animator>();
        coinsTXT    = GetComponentInChildren <TMP_Text>();

        coinsTXT.text = necessaryCoinsPhase1.ToString();
    }
Пример #2
0
 void Start()
 {
     attack      = DoAttack;
     canAttack   = true;
     animHandler = GetComponent <YT_PCAnimationHandler>();
     itemCharge  = GetComponent <ItemCharge>();
     activeItem  = GetComponentInChildren <ItemDetection>();
 }
 private void Start()
 {
     roomColor    = GetComponentInParent <LeverTrigger>();
     itemCharge   = GameObject.Find("Perso").GetComponent <ItemCharge>();
     activeItem   = GameObject.Find("DetectionZone").GetComponent <ItemDetection>();
     detectPlayer = GameObject.Find("EnnemisDetection").GetComponent <YT_RoomTransition>();
     hiveMind     = false;
 }
Пример #4
0
 private void Start()
 {
     playerController = GameObject.Find("Perso").GetComponent <PlayerController>();
     itemCharge       = GetComponent <ItemCharge>();
     activeItem       = GetComponentInChildren <ItemDetection>();
     Shoot            = DoShoot;
     controller       = GetComponent <PlayerController>();
 }
Пример #5
0
    private void Start()
    {
        coinCount      = GameObject.Find("DetectionZone").GetComponent <ItemDetection>();
        itemAnim       = GetComponent <Animator>();
        numberCoinsTXT = GetComponentInChildren <TMP_Text>();


        numberCoinsTXT.text = itemCost.ToString();
        isInside            = false;
    }
Пример #6
0
 private void Start()
 {
     activeItem    = GetComponentInChildren <ItemDetection>();
     useActiveItem = true;
 }
Пример #7
0
 private void Start()
 {
     player     = GameObject.FindGameObjectWithTag("Player");
     activeItem = GetComponentInChildren <ItemDetection>();
     itemCharge = GetComponent <ItemCharge>();
 }
Пример #8
0
 // Start is called before the first frame update
 void Start()
 {
     itemDetection = FindObjectOfType <ItemDetection>();
 }