コード例 #1
0
ファイル: Player_Movement_TwoDSS.cs プロジェクト: ZackOGG/SSR
 private void SetRefrences()
 {
     rb             = this.GetComponent <Rigidbody2D>();
     characterStats = this.GetComponent <Character_Stats>();
     animCon        = this.GetComponent <Animator_Controller>();
     hitBox         = this.GetComponent <CapsuleCollider2D>();
     //characterStats.KnockingBack += KnockBack;
     characterStats.callingDeath += SetDead;
     player      = characterStats.gameObject;
     followMouse = GameObject.FindObjectOfType <Follow_Mouse>();
 }
コード例 #2
0
        private void SetRefrences()
        {
            playerMovement = this.GetComponent <Player_Movement_TwoDSS>();
            animCon        = this.GetComponent <Animator_Controller>();

            spriteRen = this.GetComponent <SpriteRenderer>();
            rb        = this.GetComponent <Rigidbody2D>();
            if (IsPlayer())
            {
                equipmentManager = this.GetComponent <Equipment_Manager>();
            }
        }
コード例 #3
0
ファイル: Weapon_Controller.cs プロジェクト: ZackOGG/SSR
        private void SetRefrences()
        {
            anim = this.GetComponent <Animator>();

            animCon   = this.GetComponentInParent <Animator_Controller>();
            aIAnimCon = this.GetComponentInParent <AI_Animator_Controller>();

            characterStats   = this.GetComponentInParent <Character_Stats>();
            equipmentManager = this.GetComponentInParent <Equipment_Manager>();
            hitBox           = this.GetComponent <PolygonCollider2D>();
            //cloneAnimOveride = Instantiate(animOveride);
        }