コード例 #1
0
 void Start()
 {
     audioSource       = GetComponent <AudioSource>();
     animatorFunctions = GetComponent <AnimatorFunctions>();
     SetGroundType();
     origLocalScale = transform.localScale;
 }
コード例 #2
0
ファイル: MenuButton.cs プロジェクト: Woodward86/SSDTM
 private void Start()
 {
     menuButtonController = GetComponentInParent <MenuButtonController>();
     animator             = GetComponent <Animator>();
     animatorFunctions    = GetComponent <AnimatorFunctions>();
     menuButtonFunctions  = GetComponent <MenuButtonFunctions>();
 }
コード例 #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>();
 }
コード例 #4
0
ファイル: NewPlayer.cs プロジェクト: Tech-Dex/The-Emperor-Son
 void Start()
 {
     ScoreScript.scoreValue = 0;
     GamePad.SetVibration(0, 0f, 0f);
     health            = maxHealth;
     audioSource       = GetComponent <AudioSource>();
     animatorFunctions = GetComponent <AnimatorFunctions>();
     origLocalScale    = transform.localScale;
     SetGroundType();
 }
コード例 #5
0
ファイル: NewPlayer.cs プロジェクト: whutama/SuperSimple2DKit
    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();
    }
コード例 #6
0
ファイル: EnemyBase.cs プロジェクト: th-tran/knockout
 void Start()
 {
     audioSource       = GetComponent <AudioSource>();
     animatorFunctions = GetComponent <AnimatorFunctions>();
 }
コード例 #7
0
ファイル: EnemyBase.cs プロジェクト: whutama/SuperSimple2DKit
    [SerializeField] bool requirePoundAttack; //Requires the player to use the down attack to hurt

    void Start()
    {
        recoveryCounter   = GetComponent <RecoveryCounter>();
        audioSource       = GetComponent <AudioSource>();
        animatorFunctions = GetComponent <AnimatorFunctions>();
    }
コード例 #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>();
 }