private void Start()
    {
        GameEventTrigger gameEventTrigger = base.gameObject.AddComponent <GameEventTrigger>();

        gameEventTrigger.type = 2;
        if (this.run)
        {
            gameEventTrigger.onTriggerHanlde();
        }
        UnityEngine.Object.Destroy(this);
    }
Exemple #2
0
    private void Start()
    {
        GameEventTrigger gameEventTrigger = base.gameObject.AddComponent <GameEventTrigger>();

        gameEventTrigger.type       = 3;
        gameEventTrigger.paramFloat = new List <float>
        {
            this.sec
        };
        if (this.run)
        {
            gameEventTrigger.onTriggerHanlde();
        }
        UnityEngine.Object.Destroy(this);
    }