コード例 #1
0
 void Start()
 {
     pooling = GetComponent <Pooling>();
     powerUpSpriteRenderer = pooling.PowerUpObject.GetComponent <SpriteRenderer>();
     spawnPoints[0]        = -2.0f;
     spawnPoints[1]        = -0.5f;
     spawnPoints[2]        = 0.5f;
     spawnPoints[3]        = 2.0f;
     pooling.GetComponent <SpriteRenderer>().color = Color.red;
 }