You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
736 B
C#
31 lines
736 B
C#
|
4 years ago
|
using System;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace ProceduralWorlds.Flora
|
||
|
|
{
|
||
|
|
public class CameraCells : CoreCameraCellsObjectData
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Add Camera Cells to Flora Globals for Tracking
|
||
|
|
/// </summary>
|
||
|
|
private void OnEnable()
|
||
|
|
{
|
||
|
|
if (!FloraGlobals.DetailData.Contains(this))
|
||
|
|
{
|
||
|
|
FloraGlobals.DetailData.Add(this);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Remove Camera Cells from Flora Global Tracking
|
||
|
|
/// </summary>
|
||
|
|
private void OnDisable()
|
||
|
|
{
|
||
|
|
if (FloraGlobals.DetailData.Contains(this))
|
||
|
|
{
|
||
|
|
FloraGlobals.DetailData.Remove(this);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|