コード例 #1
0
ファイル: PaternBirds.cs プロジェクト: DUCKODUCK/Duckhunt
 // Start is called before the first frame update
 void Start()
 {
     ResetDirection();
     duckCollider   = GetComponent <Collider2D>();
     spriteRenderer = GetComponent <SpriteRenderer>();
     duckSpawner    = FindObjectOfType <DuckSpawnerScript>();
 }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        pointsScript      = FindObjectOfType <poinitScript>();
        duckSpawnerScript = FindObjectOfType <DuckSpawnerScript>();

        bullets     = 3;
        audioSource = GetComponent <AudioSource>();
        ;
        //this.GetComponent<AudioSource>().clip = laugh;
    }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     duckSpawnerScript = FindObjectOfType <DuckSpawnerScript>();
 }