Exemple #1
0
    private void Start()
    {
        mode   = GameObject.Find("Interaction").GetComponent <modeSelector>();
        startY = transform.position.y;
        Renderer renderer = gameObject.GetComponent <Renderer>();

        spawnPos      = transform.position;
        spawnRotation = transform.rotation;

        if (isMovable)
        {
            renderer.material = objectMaterial;
        }
        else if (!isMovable)
        {
            renderer.material = materialImmovable;
        }
        else
        {
            return;
        }
    }
Exemple #2
0
 private void Start()
 {
     mode          = GameObject.Find("Interaction").GetComponent <modeSelector>();
     startRotation = transform.localRotation;
 }
 private void Start()
 {
     mode = GameObject.Find("Interaction").GetComponent <modeSelector>();
 }