Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
            }
        }