private void Awake() { particle = GetComponentInChildren <ParticleSystem>(); particle.Stop(); if (instance == null) { instance = this; } }
void Awake() { movement = GetComponent <CharacterMovement>(); blocking = GetComponent <PlayerBlocking>(); attackAnim = GetComponent <CharacterAnimations>(); healthController = FindObjectOfType <UniversalHealthController>(); animator = GetComponent <Animator>(); effectController = SpecialEffectController.instance; #region Mobile Buttons // attackButton = GameObject.Find("Attack Button").GetComponent<Button>(); // kickButton = GameObject.Find("Kick Button ").GetComponent<Button>(); // specialAttack_Button = GameObject.Find("Special Attack Button").GetComponent<Button>(); //// buttonColor = GameObject.Find("Special Attack Button").GetComponent<Button>().colors; #endregion }