コード例 #1
0
ファイル: Player.cs プロジェクト: amchacon/Paint.io
 protected virtual void Kill(Player _Player)
 {
     _Player.Killed();
     m_TerrainManager.FillCircle(this, _Player.m_Transform.position, Constants.c_KillPlayerSplashRadius, Constants.c_KillPlayerSplashDuration);
     for (int i = 0; i < _Player.m_BrushesFollowing.Count; ++i)
     {
         m_TerrainManager.FillCircle(this, _Player.m_BrushesFollowing[i].transform.position, Constants.c_KillPlayerSplashRadius, Constants.c_KillPlayerSplashDuration);
     }
 }
コード例 #2
0
    public override void OnPlayerTouched(Player _Player)
    {
        m_RadiusMultiplier = Mathf.Clamp(_Player.GetSize() / _Player.GetMinSize(), 1f, 2.5f);
        UnregisterMap();
        m_Model.enabled = false;
        m_ParticleSystem.Play(true);
        m_IdleParticleSystem.Stop(true, ParticleSystemStopBehavior.StopEmitting);
        m_Shadow.SetActive(false);

        m_TerrainManager.FillCircle(_Player, m_Transform.position, m_Radius * m_RadiusMultiplier, m_FillDuration, SelfDestroy);
    }