Exemplo n.º 1
0
    public static CCPhysisAction getAction(float speedx)
    {
        CCPhysisAction action = CreateInstance <CCPhysisAction>();

        action.speedx = speedx;
        return(action);
    }
Exemplo n.º 2
0
    public void MoveDisk(Disk disk)
    {
        ++count;
        Complete = SSActionEventType.Started;
        CCPhysisAction diskAction = CCPhysisAction.GetAction(disk.Speed);

        this.addAction(disk.gameObject, diskAction, this);
    }
Exemplo n.º 3
0
    public void PlayUFO(UFO ufo)
    {
        count++;
        Complete = SSActionEventType.Started;
        CCPhysisAction action = CCPhysisAction.getAction(ufo.speed); //实例化为物理运动对象

        addAction(ufo.gameObject, action, this);
    }
Exemplo n.º 4
0
    public void PlayDisk(Disk disk)
    {
        count++;
        Complete = SSActionEventType.Started;
        CCPhysisAction action = CCPhysisAction.getAction(disk.speed); //实例化为物理运动对象

        addAction(disk.gameObject, action, this);
    }
Exemplo n.º 5
0
    public static CCPhysisAction GetAction(Vector3 speed)
    {
        CCPhysisAction action = ScriptableObject.CreateInstance <CCPhysisAction>();

        action.speedx = speed.x;
        action.speedy = speed.y;
        action.speedz = speed.z;
        return(action);
    }