Example #1
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>();
            }
        }
Example #2
0
 private void Start()
 {
     playerMovement = this.GetComponentInParent <Player_Movement_TwoDSS>();
     player         = playerMovement.gameObject;
 }