// Use this for initialization void Start() { Player p = new Player(); p.timerManager = tmanager; Data = new BridgeData(p); bmanager = new BuffManager(Data); var b = new Protection(bmanager, 10); b.AddEffect(); b = new Protection(bmanager, 5); b.AddEffect(); It1 t1 = p as It1; p.Reset(); It2 t2 = p as It2; p.Reset(); AtlasManager.Cache(new string[] { "test", "dd" }); InvokeRepeating("t", 0, 1); // Invoke("tt",5); }