Exemplo n.º 1
0
    public void UFOfly(GameObject disk)
    {
        Complete = SSActionEventType.Started;
        PhysicalAction action = PhysicalAction.getAction(disk.GetComponent <Disk>().Speed);

        addAction(disk, action, this);//激活对象,添加动作
    }
Exemplo n.º 2
0
    public static PhysicalAction getAction(float speed)
    {
        PhysicalAction action = CreateInstance <PhysicalAction>();

        action.speedx = speed;
        return(action);
    }