/// <summary> /// Initialize this class /// </summary> public void Start() { // Setup references instance = this; core = transform.GetChild(0).gameObject; description = core.GetComponentInChildren <SwitchableImage>(); }
/// <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(); }
/// <summary> /// Initialize references /// </summary> public void Start() { instance = this; switchImage = GetComponent <SwitchableImage> (); animator = GetComponent <Animator> (); }