public void Init(PaintableWall paintableWall, CameraTracker camTracker) { playerControllerEnabled = true; paintingConrollerEnabled = false; this.paintableWall = paintableWall; this.camTracker = camTracker; }
// Start is called before the first frame update void Start() { var go = GameObject.FindGameObjectWithTag("PaintableWall"); if (go) { wall = go.GetComponent <PaintableWall>(); paintCam = wall.GetComponentInChildren <Camera>(); } player = GetComponent <Player>(); rb = GetComponent <Rigidbody>(); spawnPoint = GameObject.FindGameObjectWithTag("SpawnPoint").transform; }
// Start is called before the first frame update void Start() { wall = GetComponentInParent <PaintableWall>(); }