Example #1
0
    protected override void OnDestroy()
    {
        base.OnDestroy();

        mCheckPoint   = null;
        throwCallback = null;
    }
Example #2
0
    protected override void Start()
    {
        base.Start();

        if (mCheckPoint != null)
        {
            action = Entity.Action.idle;

            mPlayerStats.score = mCheckPoint.playerScore;

            planetAttach.planetPos = mCheckPoint.playerPlanetPos;
            transform.position     = planetAttach.planet.ConvertToWorldPos(mCheckPoint.playerPlanetPos);

            CameraController.instance.attach = transform;
            CameraController.instance.mode   = CameraController.Mode.Attach;
            CameraController.instance.CancelMove();

            mCheckPoint = null;
        }
    }
Example #3
0
    protected override void Start()
    {
        base.Start();

        if(mCheckPoint != null) {
            action = Entity.Action.idle;

            mPlayerStats.score = mCheckPoint.playerScore;

            planetAttach.planetPos = mCheckPoint.playerPlanetPos;
            transform.position = planetAttach.planet.ConvertToWorldPos(mCheckPoint.playerPlanetPos);

            CameraController.instance.attach = transform;
            CameraController.instance.mode = CameraController.Mode.Attach;
            CameraController.instance.CancelMove();

            mCheckPoint = null;
        }
    }
Example #4
0
    protected override void OnDestroy()
    {
        base.OnDestroy ();

        mCheckPoint = null;
        throwCallback = null;
    }
Example #5
0
 //only called by level scene
 public void SetCheckpoint(SceneLevel.LevelCheckpoint checkpoint)
 {
     mCheckPoint = checkpoint;
 }
Example #6
0
 //only called by level scene
 public void SetCheckpoint(SceneLevel.LevelCheckpoint checkpoint)
 {
     mCheckPoint = checkpoint;
 }