Ejemplo n.º 1
0
    public void MakeChannelBar(string name, float time)
    {
        print("cool");
        ChannelBar channelBar = Instantiate(channelBarPrefab, GameObject.FindGameObjectWithTag("Canvas").transform);

        channelBar.skillName.text = name;
        channelBar.Duration       = time;
    }
Ejemplo n.º 2
0
 void Start()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
     channelBarPrefab = Resources.Load <ChannelBar>("Prefabs/UI/Channel Bar/Channel Bar UI");
 }