Beispiel #1
0
 private void Awake()
 {
     messageSystem     = GetComponent <MessageSystem>();
     myIndividual      = GetComponent <Individual>();
     buffEffectManager = GameObject.FindGameObjectWithTag("Effects").GetComponent <BuffEffectManager>();
     bloodHUD          = GameObject.Find("BloodHUD").GetComponent <BloodHUD>();
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Awake()
    {
        _size = size;

        map = new TerrainUnit[this.size.x, this.size.y];

        RD.SetSeed(iSeed);
        buffEffectManager = GameObject.Find("BuffEffectManager").GetComponent <BuffEffectManager>();
        this.Generate();

        StartCoroutine("LongtimeForward");
    }
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);

        bubbleGun    = GetComponent <BubbleGun>();
        magnetBubble = GetComponent <MagnetBubble>();
        chickenFeed  = GetComponent <ChickenFeed>();
        penguinFeed  = GetComponent <PenguinFeed>();
    }
Beispiel #4
0
 public void LoadMeshByBlocks(List <Vector3Int> l, Color color)
 {
     AttachMesh(BuffEffectManager.GetLineByVectors(l));
     this.GetComponent <MeshRenderer>().material.SetColor("_Color", color);
 }