Example #1
0
 void Start()
 {
     audioSource       = GetComponent <AudioSource>();
     animatorFunctions = GetComponent <AnimatorFunctions>();
     SetGroundType();
     origLocalScale = transform.localScale;
 }
Example #2
0
 private void Start()
 {
     menuButtonController = GetComponentInParent <MenuButtonController>();
     animator             = GetComponent <Animator>();
     animatorFunctions    = GetComponent <AnimatorFunctions>();
     menuButtonFunctions  = GetComponent <MenuButtonFunctions>();
 }
Example #3
0
 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>();
 }
Example #4
0
 void Start()
 {
     ScoreScript.scoreValue = 0;
     GamePad.SetVibration(0, 0f, 0f);
     health            = maxHealth;
     audioSource       = GetComponent <AudioSource>();
     animatorFunctions = GetComponent <AnimatorFunctions>();
     origLocalScale    = transform.localScale;
     SetGroundType();
 }
Example #5
0
    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();
    }
Example #6
0
 void Start()
 {
     audioSource       = GetComponent <AudioSource>();
     animatorFunctions = GetComponent <AnimatorFunctions>();
 }
Example #7
0
    [SerializeField] bool requirePoundAttack; //Requires the player to use the down attack to hurt

    void Start()
    {
        recoveryCounter   = GetComponent <RecoveryCounter>();
        audioSource       = GetComponent <AudioSource>();
        animatorFunctions = GetComponent <AnimatorFunctions>();
    }
Example #8
0
 /**
  * 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>();
 }