示例#1
0
        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));
        }
示例#2
0
        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);
        }
示例#3
0
 public void AcquireBeetleSpawnpoint(bool force = false)
 {
     _beetleSpawn.Acquire(this, null, force);
 }