示例#1
0
    // Use this for initialization
    void Start()
    {
        instance = this;

        SpawnMonster();
        RandomSpawn();
    }
 public void CancelAttack()
 {
     attackTime = false;
     GetInstanceAudioSource().Stop();
     Player.GetInstance().DesactivateGrainCamera();
     SetVisibility(false);
     MonsterSpawnManager.GetInstance().SpawnMonster();
     counterAttackTime = attackTimeTick;
     //Player.GetShake().shakeDuration = 0;
     Player.GetMotionBlur().blurAmount = 0;
 }