public override bool OnSpawn(SpawnPoint spawnpoint) { if (!spawnpoint.Acquire(this, () => _spawnpoint = null)) { Debug.LogError("Unable to acquire flower spawnpoint!"); return(false); } _spawnpoint = spawnpoint; return(base.OnSpawn(spawnpoint)); }
public override bool OnReSpawn(SpawnPoint spawnpoint) { Assert.IsNull(_spawnpoint); if (!base.OnReSpawn(spawnpoint)) { return(false); } if (!spawnpoint.Acquire(this)) { return(false); } _spawnpoint = spawnpoint; PlayerGameViewer.AddTarget(this); return(true); }
public void AcquireBeetleSpawnpoint(bool force = false) { _beetleSpawn.Acquire(this, null, force); }