public void Hover(ChangePhysicsModel model) { hover = true; afterDashHover = true; startHoverTime = Time.fixedTime; character = model.player; }
public void StopHoverPhyisics() { ChangePhysicsModel model = new ChangePhysicsModel { player = this.gameObject.GetComponent <Rigidbody2D>() }; physicsLogic.stopHover(model); }
public void fingerHoldHover() { ChangePhysicsModel model = new ChangePhysicsModel { player = this.gameObject.GetComponent <Rigidbody2D>() }; physicsLogic.FingerHoldHover(model); }
public void stopHover(ChangePhysicsModel model) { model.player.gravityScale = playerGravityScale; model.player.velocity = new Vector2(); hover = false; afterDashHover = false; //iTween.StopByName(StaticVars.ITWEEN_PLAYER_SHAKE); }
public void ResetPhysics() { //consider items ChangePhysicsModel model = new ChangePhysicsModel { player = this.gameObject.GetComponent <Rigidbody2D>() }; physicsLogic.Reset(model); }
public void FingerHoldHover(ChangePhysicsModel model) { hover = true; startHoverTime = Time.fixedTime; character = model.player; character.gravityScale = 0.05f; /*iTween.ShakeRotation(model.player.gameObject, iTween.Hash( * "name", StaticVars.ITWEEN_PLAYER_SHAKE, * "time", HoverTime, * "amount", amountOfShake * ));*/ }
public void Reset(ChangePhysicsModel model) { model.player.gravityScale = playerGravityScale; hover = false; //consider items }