예제 #1
0
 // Use this for initialization
 void Awake()
 {
     playerMovement   = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>();
     raycastDetection = GameObject.FindGameObjectWithTag("Player").GetComponent <RaycastDetection>();
     leftCornerList   = GameObject.FindGameObjectsWithTag("LeftCorner");
     rightCornerList  = GameObject.FindGameObjectsWithTag("RightCorner");
 }
예제 #2
0
 void Awake()
 {
     //Obtain components
     rb               = GetComponent <Rigidbody>();
     playerRotation   = GetComponent <PlayerRotation>();
     raycastDetection = GetComponent <RaycastDetection>();
     animator         = GetComponent <Animator>();
     changeForm       = GetComponent <ChangeForm>();
     respawnPos       = transform.position;
 }
예제 #3
0
 void Awake()
 {
     //Obtain components
     rb                  = GetComponent <Rigidbody>();
     playerRotation      = GetComponent <PlayerRotation>();
     raycastDetection    = GetComponent <RaycastDetection>();
     animator            = GetComponent <Animator>();
     respawnPos          = transform.position;
     gravityBody         = GetComponent <GravityBody>();
     gravityBody.enabled = false;
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     rayDet         = GetComponent <RaycastDetection>();
     playerMovement = GetComponent <PlayerMovement>();
 }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     rayDet = FindObjectOfType <RaycastDetection>();
 }