Ejemplo n.º 1
0
 //Set initial value for all affordances.
 int SetInitialValue(Affordances.Names affordanceName, Affordances.Types affordanceType)
 {
     if (true)
     {
         return(0);
     }
 }
Ejemplo n.º 2
0
 public void ShowInitialFeedBack(Affordances.Names WhichAffordance, float value)
 {
     DictionaryOfAffordances[WhichAffordance].value = value;
     if (DictionaryOfFeedBacks.ContainsKey(WhichAffordance))
     {
         if (DictionaryOfFeedBacks[WhichAffordance].gameObject.activeInHierarchy)
         {
             DictionaryOfFeedBacks[WhichAffordance].ChangeState(value);
         }
     }
 }
Ejemplo n.º 3
0
 bool isCompatibleWithConnectivityType(Affordances.Names WhichAffordance)
 {
     if (WhichAffordance == Affordances.Names.InputConnect && DictionaryOfAffordances.ContainsKey(Affordances.Names.OutputConnect))
     {
         return(true);
     }
     else if (WhichAffordance == Affordances.Names.OutputConnect && DictionaryOfAffordances.ContainsKey(Affordances.Names.InputConnect))
     {
         return(true);
     }
     return(false);
 }