// Use this for initialization void Start() { grounded = true; grounded2 = true; onBox = false; onBox2 = false; topOrBottom = 0; topOrBottom2 = 0; inverted = false; otherScript = otherPlayer.GetComponent <VerticalOther>(); inverted2_2 = false; invertOnCommand = false; }
// Use this for initialization void Start() { gameManagement = GameObject.Find("EndOfLevel").GetComponent <GameManagementScript>(); changeGravityFreeze = 0; changeGravity = false; coyoteTimer = 0; coyoteTimer2 = 0; coyoteGround = false; coyoteGround2 = false; topTimer = 0; topHold = false; player1NearGround = false; player2NearGround = false; player2OnBottom = false; onMoving = false; onSpeed = 0f; onMoving2 = false; onSpeed2 = 0f; inTunnel = false; floatTimer = 0; floatTop = false; Application.targetFrameRate = 60; grounded = true; grounded2 = true; forgiveGround = true; forgiveGround2 = true; topOrBottom = 0; topOrBottom2 = 0; inverted = false; otherScript = otherPlayer.GetComponent <VerticalOther>(); inverted2_2 = false; invertOnCommand = false; width = GetComponent <BoxCollider2D>().bounds.size.x; height = GetComponent <BoxCollider2D>().bounds.size.y; //width2 = otherScript.width; //height2 = otherScript.height; charAnim = GetComponentInChildren <Animator>(); otherCharAnim = otherPlayer.GetComponentInChildren <Animator>(); audioSource = GetComponent <AudioSource>(); moving = false; isSet = false; moving2 = false; isSet2 = false; box = null; hiddenGroundFlag1 = false; hiddenGroundFlag2 = false; }