// Use this for initialization void Start() { gameManagement = GameObject.Find("EndOfLevel").GetComponent <GameManagementScript>(); pushLeft = false; nonPushLeft = false; pushRight = false; nonPushRight = false; touchingMoving = false; movingPush = 0f; onMoveLeft = false; masterScript = player1.GetComponent <VerticalMaster>(); cameraScript = cameraBoi.GetComponent <FollowPlayer>(); unlock = false; width = GetComponent <BoxCollider2D>().bounds.size.x; height = GetComponent <BoxCollider2D>().bounds.size.y; //charAnim = GetComponentInChildren<Animator>(); col = false; distanceToCollision = 0f; extraSpeed = 0f; }
// Start is called before the first frame update void Start() { inside = false; verticalMaster = player.GetComponent <VerticalMaster>(); }
// Start is called before the first frame update void Start() { verticalMaster = player.GetComponent <VerticalMaster>(); }
// Start is called before the first frame update void Start() { height = GetComponent<BoxCollider2D>().bounds.size.y; vertMaster = GetComponent<VerticalMaster>(); }
// Start is called before the first frame update void Start() { verticalMaster = player.GetComponent <VerticalMaster>(); horizontal = player.GetComponent <HorizontalMovement>(); oldSpeed = horizontal.speed; }