コード例 #1
0
    public static void CameraController(GameObject GO, bool isLocalPlayer, GameJamColors color)
    {
        GameJamCharacterCameraController aux = null;

        aux = GO.GetComponent<GameJamCharacterCameraController>();

        if (!aux) aux = GO.gameObject.AddComponent<GameJamCharacterCameraController>();

        aux.Init(isLocalPlayer, color);
    }
コード例 #2
0
    public void Init(bool isLocalPlayer, GameJamColors color)
    {
        thisCamera = this.GetComponentInChildren<Camera>();
        thisCamera.enabled = isLocalPlayer;

        if (isLocalPlayer)
        {
        }
        else
        {

        }
    }
コード例 #3
0
 void setLayerInCamera(GameJamColors color)
 {
     thisCamera.cullingMask = color.AllButThisCullingMask();
 }
コード例 #4
0
 public void Init()
 {
     setUp = this.GetComponent<GameJamCharacterSetUp>();
     color = setUp.gjColor;
     setLayerInCamera(color);
 }