示例#1
0
    public void Activate()
    {
        // Debug.Log("Power Activation!");
        isFinished        = false;
        _defaultBoolValue = affectedBoolData ?? false;
        if (IsNumerical)
        {
            _defaultNumberValue = affectedFloatData.Value;
            affectedFloatData.ApplyChange(immediateFloatChange);
        }



        affectedBoolData?.SetValue(newValue);

        _beginningTime = Time.realtimeSinceStartup;

        if (!IsNotInstant)
        {
            isFinished = true;
        }
        Debug.Log($"Activate: {powerName}");
    }