public static void SetVectorVariable(VECTORVAR variable, Vector3 value)
 {
     if (variable < VECTORVAR.MAX)
     {
         vectorVariables[(int)variable] = value;
     }
     else
     {
         Debug.LogError("SetVectorVariable: Trying to get MAX index!");
     }
 }
 public static Vector3 GetVectorVariable(VECTORVAR variable)
 {
     if (variable < VECTORVAR.MAX)
     {
         return(vectorVariables[(int)variable]);
     }
     else
     {
         Debug.LogError("GetVectorVariable: Trying to get MAX index!");
         return(new Vector3());
     }
 }
Example #3
0
    void Start()
    {
        activeTextHolder.SetActive(false);

        switch (playerNumber)
        {
        case 1:
            colorOption = VECTORVAR.player_one_color;
            break;

        case 2:
            colorOption = VECTORVAR.player_two_color;
            break;
        }

        MoveToColor(playerNumber - 1);
        SelectColor(playerNumber - 1);
    }
 public static string VectorVarToString(VECTORVAR variable, int element)
 {
     return("VEC" + ((int)(variable)).ToString() + element.ToString());
 }