コード例 #1
0
ファイル: MTTintBy.cs プロジェクト: jyzgo/MTActionLib
        public MTTintByState(MTTintBy action, GameObject target)
            : base(action, target)
        {
            DeltaB = action.DeltaB;
            DeltaG = action.DeltaG;
            DeltaR = action.DeltaR;

            var protocol = target;
            if (protocol != null)
            {
                var color = protocol.getColor();
                FromR = color.r;
                FromG = color.g;
                FromB = color.b;
            }
        }
コード例 #2
0
        public MTTintByState(MTTintBy action, GameObject target)
            : base(action, target)
        {
            DeltaB = action.DeltaB;
            DeltaG = action.DeltaG;
            DeltaR = action.DeltaR;

            var protocol = target;

            if (protocol != null)
            {
                var color = protocol.getColor();
                FromR = color.r;
                FromG = color.g;
                FromB = color.b;
            }
        }