void Start() { COLLIDER_0_NAME = "Checker_Boy_0"; COLLIDER_1_NAME = "Checker_Boy_1"; collider_0 = GameObject.Find(COLLIDER_0_NAME); collider_1 = GameObject.Find(COLLIDER_1_NAME); COLLIDER_0 = collider_0.GetComponent <Rotation_Checker> (); COLLIDER_1 = collider_1.GetComponent <Rotation_Checker> (); }
void Start() { COLLIDER_RIGHT_TOP_NAME = "Checker_Boy_Right_0"; COLLIDER_RIGHT_BOTTOM_NAME = "Checker_Boy_Right_1"; COLLIDER_LEFT_TOP_NAME = "Checker_Boy_Left_0"; COLLIDER_LEFT_BOTTOM_NAME = "Checker_Boy_Left_1"; collider_right_top = GameObject.Find(COLLIDER_RIGHT_TOP_NAME); collider_right_bottom = GameObject.Find(COLLIDER_RIGHT_BOTTOM_NAME); collider_left_top = GameObject.Find(COLLIDER_LEFT_TOP_NAME); collider_left_bottom = GameObject.Find(COLLIDER_LEFT_BOTTOM_NAME); COLLIDER_RIGHT_TOP = collider_right_top.GetComponent <Rotation_Checker> (); COLLIDER_RIGHT_BOTTOM = collider_right_bottom.GetComponent <Rotation_Checker> (); COLLIDER_LEFT_TOP = collider_left_top.GetComponent <Rotation_Checker> (); COLLIDER_LEFT_BOTTOM = collider_left_bottom.GetComponent <Rotation_Checker> (); SPRITE_BOY = GameObject.Find("Space_boi_sprite"); jumpSpeed = 5.0f; }