示例#1
0
    void Awake()
    {
        startPosition  = spawnPoint.transform.position;
        newPosition    = spawnPoint.transform.position;
        steamerDropped = Instantiate(steamer, startPosition, Quaternion.identity);
        steamerDropped.onSteamerDropCompleted += SpawnSteamer;

        offset = new Vector3(0, offsetValue, 0);
    }
示例#2
0
 private void SpawnSteamer()
 {
     steamerDropped.onSteamerDropCompleted -= SpawnSteamer;
     steamerDropped = Instantiate(steamer, spawnPoint.transform.position, Quaternion.identity);
     steamerDropped.onSteamerDropCompleted += SpawnSteamer;
 }