Exemple #1
0
    public static PhysicalSupportTools MaxSpeedLimitTo(GameObject o, Hashtable table)
    {
        MaxSpeedLimit sl = new MaxSpeedLimit();

        sl.Init(table);
        return(AddSupportTools(o, PhysicalSupportType.MaxSpeedLimit, sl));
    }
 public static PhysicalSupportTools MaxSpeedLimitTo(GameObject o, float maxSpeed)
 {
     if(o.rigidbody == null)
     {
         Debug.LogError("can not found the rigidbody at the gameobject : " + o);
         return null;
     }
     MaxSpeedLimit sl = new MaxSpeedLimit();
     sl.Init(Table("Rigidbody", o.rigidbody, "MaxSpeed", maxSpeed));
     return AddSupportTools(o, PhysicalSupportType.MaxSpeedLimit, sl);
 }
Exemple #3
0
    public static PhysicalSupportTools MaxSpeedLimitTo(GameObject o, float maxSpeed)
    {
        if (o.rigidbody == null)
        {
            Debug.LogError("can not found the rigidbody at the gameobject : " + o);
            return(null);
        }
        MaxSpeedLimit sl = new MaxSpeedLimit();

        sl.Init(Table("Rigidbody", o.rigidbody, "MaxSpeed", maxSpeed));
        return(AddSupportTools(o, PhysicalSupportType.MaxSpeedLimit, sl));
    }
 public static PhysicalSupportTools MaxSpeedLimitTo(GameObject o, Hashtable table)
 {
     MaxSpeedLimit sl = new MaxSpeedLimit();
     sl.Init(table);
     return AddSupportTools(o, PhysicalSupportType.MaxSpeedLimit, sl);
 }