// Use this for initialization void Start() { ThePlayer = this.gameObject; rb2D = this.GetComponent<Rigidbody2D>(); HealthController = this.GetComponent<HealthScript>(); MoveController = this.GetComponent<ActorMoveScript>(); JumpController = this.GetComponent<ActorJumpScript>(); AttackController = this.GetComponent<ActorAttackScript>(); GroundCheck = GameObject.Find(this.name + "/GroundCheck").transform; WallCheck = GameObject.Find(this.name + "/WallCheck").transform; Anim = GetComponent<Animator>(); }
// Use this for initialization void Start() { ThePlayer = this.gameObject; rb2D = this.GetComponent <Rigidbody2D>(); HealthController = this.GetComponent <HealthScript>(); MoveController = this.GetComponent <ActorMoveScript>(); JumpController = this.GetComponent <ActorJumpScript>(); AttackController = this.GetComponent <ActorAttackScript>(); GroundCheck = GameObject.Find(this.name + "/GroundCheck").transform; WallCheck = GameObject.Find(this.name + "/WallCheck").transform; Anim = GetComponent <Animator>(); }