예제 #1
0
 // 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>();
 }
예제 #2
0
 // 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>();
 }