import successful, grid has visuals
cell values and grid lines are displayed. no interaction available yet.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
------------------- Code Monkey -------------------
|
||||
|
||||
Thank you for downloading the Code Monkey Utilities
|
||||
I hope you find them useful in your projects
|
||||
If you have any questions use the contact form
|
||||
Cheers!
|
||||
|
||||
unitycodemonkey.com
|
||||
--------------------------------------------------
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CodeMonkey.MonoBehaviours {
|
||||
|
||||
/*
|
||||
* Easy set up for CameraFollow, it will follow the transform with zoom
|
||||
* */
|
||||
public class CameraFollowSetup : MonoBehaviour {
|
||||
|
||||
[SerializeField] private CameraFollow cameraFollow = null;
|
||||
[SerializeField] private Transform followTransform = null;
|
||||
[SerializeField] private float zoom = 50f;
|
||||
|
||||
private void Start() {
|
||||
if (followTransform == null) {
|
||||
Debug.LogError("followTransform is null! Intended?");
|
||||
cameraFollow.Setup(() => Vector3.zero, () => zoom, true, true);
|
||||
} else {
|
||||
cameraFollow.Setup(() => followTransform.position, () => zoom, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user