Ejemplo n.º 1
0
        //public bool startedLevel;

        void Start()
        {
            fm      = FindObjectOfType <FindMatch>();
            display = FindObjectOfType <DisplayEndUI>();
            //nm = FindObjectOfType<NotificationManager>();
            criteria      = GameObject.Find("Criteria").GetComponent <Criteria>();
            currentHealth = min_neutralHealth;
            healthState   = HealthStates.Sick;
            healthBar.SetHealth(min_neutralHealth);

            anim     = GetComponent <Animator>();
            audiosrc = GetComponent <AudioSource>();
        }
Ejemplo n.º 2
0
        void Start()
        {
            matchingAudio = GetComponent <AudioSource>();

            Time.timeScale = 0f;

            healthManager = FindObjectOfType <HealthManager>();
            findMatch     = FindObjectOfType <FindMatch>();
            criteria      = GameObject.Find("Criteria").GetComponent <Criteria>();

            allPieces = new GameObject[width, height];

            posOffset = this.transform.position.x;

            SetUp();
        }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     board     = FindObjectOfType <Board>();     //find board gameobject
     findMatch = FindObjectOfType <FindMatch>();
     criteria  = GameObject.Find("Criteria").GetComponent <Criteria>();
 }