Пример #1
0
    private void PlayDieFX()
    {
        GameObject fx = null;

        switch (parent.species)
        {
        case GroupObjectManager.Species.RABBIT:
            fx = FBParticleManager.GetEffect("rabbit_disable", 2);
            break;

        case GroupObjectManager.Species.TREE:
            fx = FBParticleManager.GetEffect("tree_disable", 2);
            break;

        case GroupObjectManager.Species.WHEAT:
            fx = FBParticleManager.GetEffect("tree_disable", 2);
            break;

        default:
            break;
        }
        if (fx)
        {
            fx.transform.position = this.transform.position;
            fx.SetActive(true);
        }
    }
Пример #2
0
    public static void ShowWrongSignal(Vector3 pos, float duration = 1f, bool isFollow = true)
    {
        //GameObject go = FBPoolManager.instance.getPoolObject(WRONG_SIGNAL_POPUP, FBPoolManager.POOLTYPE.UI);
        //BasePopup baseScript = go.GetComponent<BasePopup>();
        //baseScript.SetValues(null, isFollow, duration);
        FBSoundManager.Play(FBSoundManager.WRONG_SOUND);
        GameObject go = FBParticleManager.GetEffect("wrong_signal", 2f);

        go.transform.position = pos;
        go.SetActive(true);
    }