コード例 #1
0
    void Update()
    {
        float time = Time.realtimeSinceStartup - mStartTime;

        if (Duration > 0.0f && time > Duration)
        {
            Reset();
            Release();
            return;
        }
        if (Follow && mFollower != null)
        {
            if (skillWarningType != SkillWarningType.PreOpCircle)
            {
                transform.position = mFollower.transform.position;
            }
            if (skillWarningType != SkillWarningType.PreOpFan && skillWarningType != SkillWarningType.PreOpRect)
            {
                transform.rotation = mFollower.transform.rotation;
            }
            Decal.UpdateMesh();
        }
    }