Exemplo n.º 1
0
    public static PhysicsFlyAction GetSSAction(Vector3 direction, float angle, float power, bool go_)
    {
        PhysicsFlyAction action = CreateInstance <PhysicsFlyAction>();

        action.start_vector = Quaternion.Euler(new Vector3(0, 0, angle)) * Vector3.right * power;
        action.power        = power;
        return(action);
    }
Exemplo n.º 2
0
 public void UFOfly(GameObject disk, float angle, float power, bool go)
 {
     fly = PhysicsFlyAction.GetSSAction(disk.GetComponent <DiskData>().direction, angle, power, go);
     this.RunAction(disk, fly, this);
 }