/// <summary>
 /// Initialize this class
 /// </summary>
 public void Start()
 {
     // Setup references
     instance    = this;
     core        = transform.GetChild(0).gameObject;
     description = core.GetComponentInChildren <SwitchableImage>();
 }
Beispiel #2
0
 /// <summary>
 /// Initialize the instance
 /// </summary>
 public void Start()
 {
     // Initialize private variable and grab components needed
     particle        = transform.parent.GetComponent <ParticleSystem>();
     coreAnimator    = GetComponent <Animator>();
     bgAnimator      = transform.GetChild(0).GetComponentInChildren <Animator>();
     switchableImage = transform.GetChild(0).GetChild(0).GetComponentInChildren <SwitchableImage>();
     // Register
     Coordinator.Coordinator.RegisterCharacter(this);
     // Start all character with skill ready
     SkillReady();
 }
Beispiel #3
0
 /// <summary>
 /// Initialize references
 /// </summary>
 public void Start()
 {
     instance    = this;
     switchImage = GetComponent <SwitchableImage> ();
     animator    = GetComponent <Animator> ();
 }