Ejemplo n.º 1
0
 private void Awake()
 {
     playerSprites = GetComponent <UserControlledSprites>();
     playerScript  = GetComponent <PlayerScript>();
     //initially we are upright and don't rotate with the matrix
     rotateWithMatrix = false;
 }
Ejemplo n.º 2
0
    private void Start()
    {
        playerSprites = gameObject.GetComponent <UserControlledSprites>();

        registerPlayer = GetComponent <RegisterPlayer>();
        pna            = gameObject.GetComponent <PlayerNetworkActions>();
    }
Ejemplo n.º 3
0
 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>();
 }
Ejemplo n.º 4
0
 private void Start()
 {
     equipment       = GetComponent <Equipment>();
     playerMove      = GetComponent <PlayerMove>();
     playerSprites   = GetComponent <UserControlledSprites>();
     playerScript    = GetComponent <PlayerScript>();
     chatIcon        = GetComponentInChildren <ChatIcon>();
     objectBehaviour = GetComponent <ObjectBehaviour>();
 }
Ejemplo n.º 5
0
    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");
    }