Пример #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Пример #2
0
 void Start()
 {
     playerClass      = transform.GetComponent <PlayerSelectScript> ();
     playerNumber     = playerClass.playerNumber;
     horizontalMove   = "Horizontal" + playerNumber;
     verticalMove     = "Vertical" + playerNumber;
     cursorHorizontal = "CursorHorizontal" + playerNumber;
     cursorVertical   = "CursorVertical" + playerNumber;
     selectInput      = "Select" + playerNumber;
     deselectInput    = "Deselect" + playerNumber;
     pause            = "Start" + playerNumber;
 }