示例#1
0
    public SpawnException2D(MonoBehaviour context, Spawner2D spawner, Vector2 centre, float width, float height)
    {
        this.context = context;
        this.centre  = centre;
        this.spawner = spawner;

        CheckException(width, height);
        isActive = true;
    }
示例#2
0
    public SpawnException2D(MonoBehaviour context, Spawner2D spawner, Vector2 centre, float width, float height, float duration, bool startNow)
    {
        this.context  = context;
        this.centre   = centre;
        this.spawner  = spawner;
        this.duration = duration;

        CheckException(width, height);
        if (startNow)
        {
            StartException();
        }
    }