示例#1
0
    // Use this for initialization
    void Awake()
    {
        rangeAngle         = GameObject.Find("Range").GetComponent <RangeAngle>();
        frogTongue         = GameObject.Find("Tongue").GetComponent <FrogTongue>();
        wave               = 0;
        activeMonsterCount = 0;

        colorSelection.Add(Color.green);
        colorSelection.Add(Color.red);
        colorSelection.Add(Color.yellow);
        colorSelection.Add(Color.blue);
        colorSelection.Add(Color.cyan);
        colorSelection.Add(Color.magenta);
    }
示例#2
0
    // Use this for initialization
    void Awake()
    {
        rangeAngle = GameObject.Find("Range").GetComponent<RangeAngle>();
        frogTongue = GameObject.Find("Tongue").GetComponent<FrogTongue>();
        wave = 0;
        activeMonsterCount = 0;

        colorSelection.Add (Color.green);
        colorSelection.Add (Color.red);
        colorSelection.Add (Color.yellow);
        colorSelection.Add (Color.blue);
        colorSelection.Add (Color.cyan);
        colorSelection.Add (Color.magenta);
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     frogTongue = GetComponentInParent<FrogTongue>();
     c = gameObject.GetComponent<Collider2D>();
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     frogTongue = GetComponentInParent <FrogTongue>();
     c          = gameObject.GetComponent <Collider2D>();
 }