예제 #1
0
 public void Hover(ChangePhysicsModel model)
 {
     hover          = true;
     afterDashHover = true;
     startHoverTime = Time.fixedTime;
     character      = model.player;
 }
예제 #2
0
    public void StopHoverPhyisics()
    {
        ChangePhysicsModel model = new ChangePhysicsModel {
            player = this.gameObject.GetComponent <Rigidbody2D>()
        };

        physicsLogic.stopHover(model);
    }
예제 #3
0
    public void fingerHoldHover()
    {
        ChangePhysicsModel model = new ChangePhysicsModel {
            player = this.gameObject.GetComponent <Rigidbody2D>()
        };

        physicsLogic.FingerHoldHover(model);
    }
예제 #4
0
 public void stopHover(ChangePhysicsModel model)
 {
     model.player.gravityScale = playerGravityScale;
     model.player.velocity     = new Vector2();
     hover          = false;
     afterDashHover = false;
     //iTween.StopByName(StaticVars.ITWEEN_PLAYER_SHAKE);
 }
예제 #5
0
    public void ResetPhysics()
    {
        //consider items
        ChangePhysicsModel model = new ChangePhysicsModel {
            player = this.gameObject.GetComponent <Rigidbody2D>()
        };

        physicsLogic.Reset(model);
    }
예제 #6
0
    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
         * ));*/
    }
예제 #7
0
 public void Reset(ChangePhysicsModel model)
 {
     model.player.gravityScale = playerGravityScale;
     hover = false;
     //consider items
 }