Пример #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);
    }
Пример #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);
 }