예제 #1
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;
            }
        }
예제 #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;
            }
        }