void Start() { audioSource = GetComponent <AudioSource>(); animatorFunctions = GetComponent <AnimatorFunctions>(); SetGroundType(); origLocalScale = transform.localScale; }
private void Start() { menuButtonController = GetComponentInParent <MenuButtonController>(); animator = GetComponent <Animator>(); animatorFunctions = GetComponent <AnimatorFunctions>(); menuButtonFunctions = GetComponent <MenuButtonFunctions>(); }
private void Start() { // Menu which this button belongs. It assumes it's parent menuButtonController = transform.parent.GetComponent <MenuButtonController>(); // Animator component of this button animator = GetComponent <Animator>(); // AnimatorFunctions component of this button animatorFunctions = GetComponent <AnimatorFunctions>(); }
void Start() { ScoreScript.scoreValue = 0; GamePad.SetVibration(0, 0f, 0f); health = maxHealth; audioSource = GetComponent <AudioSource>(); animatorFunctions = GetComponent <AnimatorFunctions>(); origLocalScale = transform.localScale; SetGroundType(); }
void Start() { Cursor.visible = false; SetUpCheatItems(); health = maxHealth; animatorFunctions = GetComponent <AnimatorFunctions>(); origLocalScale = transform.localScale; recoveryCounter = GetComponent <RecoveryCounter>(); //Find all sprites so we can hide them when the player dies. graphicSprites = GetComponentsInChildren <SpriteRenderer>(); SetGroundType(); }
void Start() { audioSource = GetComponent <AudioSource>(); animatorFunctions = GetComponent <AnimatorFunctions>(); }
[SerializeField] bool requirePoundAttack; //Requires the player to use the down attack to hurt void Start() { recoveryCounter = GetComponent <RecoveryCounter>(); audioSource = GetComponent <AudioSource>(); animatorFunctions = GetComponent <AnimatorFunctions>(); }
/** * What happens on start frame * * Gathers all components that are needed and initializes the object */ void Start() { m_Anim = GetComponent <Animator>(); m_AnimFuncs = GetComponent <AnimatorFunctions>(); }