public static Willpoint Factory(int cellID, Willpoints type) { Willpoint willpoint = Willpoint.Factory(type); willpoint.Cell = Cell.FromId(cellID); return(willpoint); }
public static Willpoint Factory(Willpoints type) { willpointType = type; GameObject willpointGo = PhotonNetwork.Instantiate("Prefabs/Tokens/" + willpointType, Vector3.zero, Quaternion.identity, 0); token = willpointGo; Willpoint wp = willpointGo.GetComponent <Willpoint>(); wp.Cell = null; return(wp); }