Beispiel #1
0
 public AbstractRelic(string _setId, string _imgName, RelicTier _tier, LandingSound _sfx)
 {
     IsPulse     = false;
     IsDone      = false;
     relicId     = _setId;
     smallNumber = 23;
 }
Beispiel #2
0
    public override void OnEvent(LandingSound evnt)
    {
        if (evnt.Player.IsOwner)
        {
            return;
        }
        var script = evnt.Player.gameObject.GetComponent <PlayerStartScript>();

        script.PlayLandingSound();
    }
Beispiel #3
0
        private void PlayLandingSound()
        {
            LandingSound evnt = LandingSound.Create(Bolt.GlobalTargets.Others);

            evnt.Player = entity;
            evnt.Send();

            m_AudioSource.clip = m_LandSound;
            m_AudioSource.Play();
            m_NextStep = m_StepCycle + .5f;
        }