GetGPActionObjectOrCreate() public static method

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
return GameObject
示例#1
0
 public virtual GameObject GetGPActionObjectOrCreate()
 {
     return(GPActionUtils.GetGPActionObjectOrCreate(this.gameObject));
 }