GetGPActionObjectOrCreate() public static méthode

Returns the GPActionObject attached to the specified GameObject if any. Otherwise creates it and return the newly created GPActionObject;
public static GetGPActionObjectOrCreate ( GameObject parentObj ) : GameObject
parentObj GameObject
Résultat GameObject
 public virtual GameObject GetGPActionObjectOrCreate()
 {
     return(GPActionUtils.GetGPActionObjectOrCreate(this.gameObject));
 }