Ejemplo n.º 1
0
    public void GAMEMASTER_StartGame()
    {
        Debug.Log("GAME_START!!!!");
        observer.StartGame(true);
        TestPlayerScript playerScript = FindObjectOfType <TestPlayerScript> ();

        playerScript.PutPlayerIntoStartPosition();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        Observer     = FindObjectOfType <OBSERVER> ();
        playerScript = FindObjectOfType <TestPlayerScript> ();

        panelPieces[0] = panelGround;
        panelPieces[1] = panelLeft;
        panelPieces[2] = panelFront;
        panelPieces[3] = panelRight;
        panelPieces[4] = panelBack;
        panelPieces[5] = panelCeiling;
        // Angles
//		panelPieces[6] = panelGroundLeft;
//		panelPieces[7] = panelGroundFront;
//		panelPieces[8] = panelGroundRight;
//		panelPieces[9] = panelGroundBack;
//		panelPieces[10] = panelCeilingLeft;
//		panelPieces[11] = panelCeilingFront;
//		panelPieces[12] = panelCeilingRight;
//		panelPieces[13] = panelCeilingBack;
//
//		if (transform.Find ("CubeSelect")) {
//			cubeSelectTrans = transform.Find ("CubeSelect").gameObject;
//		}

        // this will need to change for the alien to walk up walls
        // and if marine is to climb up walls (ladders)
//		if (transform.Find ("Ground")) {
//			if (transform.Find ("Ground").gameObject.activeSelf) {
//				cubeWalkable = true;
//			} else {
//				cubeWalkable = false;
//			}
//		}
        ////////////////////////////////////////////////
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     playerScript = GameObject.FindObjectOfType <TestPlayerScript>();
 }