protected void SyncReceiver(string receiverID) { List <string> receiverTargetChoices = new List <string>(); receiverTargetChoices.Add("None"); if (receivingAtom != null && receiverID != null) { receiver = receivingAtom.GetStorableByID(receiverID); if (receiver != null) { foreach (string actionParams in receiver.GetActionNames()) { receiverTargetChoices.Add(actionParams); } } else if (receiverID != "None") { // some storables can be late loaded, like skin, clothing, hair, etc so must keep track of missing receiver //Debug.Log("Missing receiver " + receiverID); _missingReceiverStoreId = receiverID; } } else { receiver = null; } receiverTargetJSON.choices = receiverTargetChoices; receiverTargetJSON.val = "None"; }
public override IEnumerable <string> GetParameterNames(JSONStorable s) { foreach (var n in s.GetActionNames()) { yield return(n); } }
public static List <string> GetCustomActionNames(this JSONStorable storable) { return(storable.GetActionNames().Where((a) => !_commonActionNames.Contains(a)).ToList()); }