Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     AudioSource[] audios = GetComponents <AudioSource>();
     first           = audios[0];
     second          = audios[1];
     rb              = GetComponent <Rigidbody2D>();
     animator        = GetComponent <Animator>();
     manager         = GameObject.Find("Manager").GetComponent <NYCManager>();
     health          = 100;
     healthBar.value = health;
 }
Example #2
0
 void Awake()
 {
     Instance = this;
 }