コード例 #1
0
ファイル: Gun.cs プロジェクト: Over1984/2DPlayerCharacter
        private PlatformerCharacter2D playerCtrl; // Reference to the PlayerControl script.

        #endregion Fields

        #region Methods

        void Awake()
        {
            // Setting up the references.
            anim = transform.root.gameObject.GetComponent<Animator>();
            playerCtrl = transform.root.GetComponent<PlatformerCharacter2D>();
        }
コード例 #2
0
        private Animator anim;                                          // Reference to the Animator component.


        void Awake()
        {
            // Setting up the references.
            anim       = transform.root.gameObject.GetComponent <Animator>();
            playerCtrl = transform.root.GetComponent <PlatformerCharacter2D>();
        }
コード例 #3
0
 private void Awake()
 {
     m_Character = GetComponent <PlatformerCharacter2D>();
 }
コード例 #4
0
 private void Awake()
 {
     m_Character = GetComponent<PlatformerCharacter2D>();
 }