コード例 #1
0
ファイル: Unit.cs プロジェクト: SIL3nCe/DontWreck
    ///==================================================================================
    ///ENGINE METHODS
    ///==================================================================================

    private void Awake()
    {
        m_ui = transform.Find("UnitUI").GetComponent <UI.UnitUI>();

        m_target = new STarget(ETargetType.NONE, null, null);

        m_maxHp = 100;

        SetHP(m_maxHp);
        SetSelected(false);

        m_animStopped = true;
    }
コード例 #2
0
        protected override MutableObject Mutate(MutableObject mutable)
        {
            foreach (var entry in RGBColor.GetEntries(mutable))
            {
                float outH, outS, outV;
                ColorUtility.RGBToHSV(RGBColor.GetValue(entry), out outH, out outS, out outV);

                HTarget.SetValue(outH, entry);
                STarget.SetValue(outS, entry);
                VTarget.SetValue(outV, entry);
            }

            return(mutable);
        }