Exemple #1
0
 public override void DoBeforeEntering()
 {
     mBear      = mCharacter as Bear;
     mCurType   = E_SuccessType.Move;
     mOrginPos  = mCharacter.position;
     mReachHome = false;
 }
Exemple #2
0
 private void LiftAct()
 {
     mCharacter.gameObject.transform.position += Vector3.up * Time.deltaTime * 10;
     if (mCharacter.gameObject.transform.position.y > 4.2f)
     {
         mCurType = E_SuccessType.Home;
         mCharacter.gameObject.transform.position -= ioo.cameraManager.right * 3;
         mBear.UseGravityAndNMA(true);
         mCharacter.PlayAnim("run", 3);
     }
 }
Exemple #3
0
    private void MoveAct()
    {
        mBear.NMAMove();
        Vector3 direction = ioo.cameraManager.position - mCharacter.position;

        if (direction.magnitude < 1.0f)
        {
            mCurType = E_SuccessType.Lift;
            mBear.UseGravityAndNMA(false);
            // 相机震动
            ioo.cameraManager.BossShortShake();
            // 对玩家造成伤害
            int[] args = new int[] { -1, mCharacter.attr.baseAttr.id, mCharacter.attr.baseAttr.damageValue };
            ioo.gameEventSystem.NotifySubject(GameEventType.PlayerOnDamage, args);

            mBear.crashPoint.AddScreenCrash();
        }
    }