public void SpawnDecalOnGround(DecalType decalType, Vector3 position) { DecalPool pool = this._pools[decalType]; Vector3 pos = Utility.Utils.GetGroundedPosition(position); pool.Get(pos + Vector3.up * this._decalGroundOffset, Quaternion.LookRotation(Vector3.down)); }
private void Awake() { if (_instance == null) { _instance = this; } GrowPool(); }