private void Awake() { playerSprites = GetComponent <UserControlledSprites>(); playerScript = GetComponent <PlayerScript>(); //initially we are upright and don't rotate with the matrix rotateWithMatrix = false; }
private void Start() { playerSprites = gameObject.GetComponent <UserControlledSprites>(); registerPlayer = GetComponent <RegisterPlayer>(); pna = gameObject.GetComponent <PlayerNetworkActions>(); }
private void Awake() { playerSprites = GetComponent <UserControlledSprites>(); playerScript = GetComponent <PlayerScript>(); //initially we are upright and don't rotate with the matrix rotateWithMatrix = false; metaDataLayer = transform.GetComponentInParent <MetaDataLayer>(); }
private void Start() { equipment = GetComponent <Equipment>(); playerMove = GetComponent <PlayerMove>(); playerSprites = GetComponent <UserControlledSprites>(); playerScript = GetComponent <PlayerScript>(); chatIcon = GetComponentInChildren <ChatIcon>(); objectBehaviour = GetComponent <ObjectBehaviour>(); }
private void Start() { //for changing direction on click playerSprites = gameObject.GetComponent <UserControlledSprites>(); playerMove = GetComponent <PlayerMove>(); objectBehaviour = GetComponent <ObjectBehaviour>(); lightingSystem = Camera.main.GetComponent <LightingSystem>(); //Do not include the Default layer! Assign your object to one of the layers below: layerMask = LayerMask.GetMask("Furniture", "Walls", "Windows", "Machines", "Players", "Items", "Door Open", "Door Closed", "WallMounts", "HiddenWalls", "Objects", "Matrix"); }