public static SelectableObjectsConfigurationGameObject Get() { if (Instance == null) { Instance = FindObjectOfType <SelectableObjectsConfigurationGameObject>(); } return(Instance); }
public SelectableObjectRendererManager() { this.SelectableObjectsConfiguration = SelectableObjectsConfigurationGameObject.Get().SelectableObjectsConfiguration; CommandBufer = new CommandBuffer(); CommandBufer.name = GetType().Name; //Camera.main.AddCommandBuffer(CameraEvent.AfterForwardAlpha, this.commandBufer); SelectableObjectIconAnimation = new SelectableObjectIconAnimation(); SelectionDoticonMaterialProperty = new MaterialPropertyBlock(); }