コード例 #1
0
 void getReferences()
 {
     manager         = baseHalo.manager;
     style           = manager.GetComponent <haloStyle>();
     haloActive      = baseHalo.haloActive;
     poly            = otherObject.GetComponent <PolygonCollider2D>();
     keepToMainStyle = baseHalo.keepToMainStyle;
 }
コード例 #2
0
ファイル: DrawHalo.cs プロジェクト: BeardyKing/ProjectRed
    void Start()
    {
        // haloSwitch = GetComponent<HaloSwitch>();
        // haloSwitch.setValues(player, state, manager, haloActive);

        player  = GameObject.Find("player");
        manager = GameObject.Find("EventHandeler");
        style   = manager.GetComponent <haloStyle>();
    }