Ejemplo n.º 1
0
 void Awake()
 {
     if (current == null)
     {
         current    = this;
         m_animator = this.GetComponent <Animator>();
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     livesText       = this.GetComponent <TextMeshProUGUI>();
     playerComponent = GameObject.Find("Player").GetComponent <D_PlayerTestScript>();
 }