Пример #1
0
        public static CCWaves actionWithWaves(int wav, float amp, bool h, bool v, ccGridSize gridSize, float duration)
        {
            CCWaves cCWafe = new CCWaves();

            if (cCWafe.initWithWaves(wav, amp, h, v, gridSize, duration))
            {
                return(cCWafe);
            }
            return(null);
        }
Пример #2
0
        /// <summary>
        /// initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration
        /// </summary>
        public static CCWaves actionWithWaves(int wav, float amp, bool h, bool v, ccGridSize gridSize,
            float duration)
        {
            CCWaves pAction = new CCWaves();

            if (pAction.initWithWaves(wav, amp, h, v, gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
Пример #3
0
        /** initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration */
        public static CCWaves actionWithWaves(int wav, float amp, bool h, bool v, ccGridSize gridSize,
            float duration)
        {
            CCWaves pAction = new CCWaves();

            if (pAction != null)
            {
                if (pAction.initWithWaves(wav, amp, h, v, gridSize, duration))
                {
                    // pAction->autorelease();
                }
                else
                {
                    // CC_SAFE_RELEASE_NULL(pAction);
                }
            }

            return pAction;
        }