public void GAMEMASTER_StartGame() { Debug.Log("GAME_START!!!!"); observer.StartGame(true); TestPlayerScript playerScript = FindObjectOfType <TestPlayerScript> (); playerScript.PutPlayerIntoStartPosition(); }
// 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; // } // } //////////////////////////////////////////////// }
// Start is called before the first frame update void Start() { playerScript = GameObject.FindObjectOfType <TestPlayerScript>(); }