Пример #1
0
        public override void OnLoad()
        {
            PLAYER          = GameObject.Find("PLAYER");
            foodInteraction = PLAYER.AddComponent <InteractionRaycast>();
            PLAYER.AddComponent <PlayerFoodSystems>();
            GUIuse = PlayMakerGlobals.Instance.Variables.GetFsmBool("GUIuse");

            //delet zone over
            AssetBundle ab        = LoadAssets.LoadBundle(this, "foodoverhaul.unity3d");
            GameObject  peas      = ab.LoadAsset("canned pea soup.prefab") as GameObject;
            GameObject  fishsticc = ab.LoadAsset("fish sticks.prefab") as GameObject;
            GameObject  colabruh  = ab.LoadAsset("cola.prefab") as GameObject;
            GameObject  sodabruh  = ab.LoadAsset("soda.prefab") as GameObject;

            ab.Unload(false);

            GameObject peasbruh = GameObject.Instantiate(peas);

            LoadAssets.MakeGameObjectPickable(peasbruh);
            GameObject fishsticks = GameObject.Instantiate(fishsticc);

            LoadAssets.MakeGameObjectPickable(fishsticks);
            GameObject cola = GameObject.Instantiate(colabruh);

            LoadAssets.MakeGameObjectPickable(cola);
            GameObject soda = GameObject.Instantiate(sodabruh);

            LoadAssets.MakeGameObjectPickable(soda);
        }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     foodInteraction = FoodOverhaul.foodInteraction;
     GUIuse          = FoodOverhaul.GUIuse;
     selfCollider    = GetComponent <Collider>();
     pfd             = FoodOverhaul.PLAYER.GetComponent <PlayerFoodSystems>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     foodInteraction = FoodOverhaul.foodInteraction;
     GUIuse          = FoodOverhaul.GUIuse;
     rigidbody       = GetComponent <Rigidbody>();
     selfCollider    = GetComponent <Collider>();
     pfd             = FoodOverhaul.PLAYER.GetComponent <PlayerFoodSystems>();
     audio           = GetComponent <AudioSource>();
 }
 // Use this for initialization
 void Start()
 {
     foodInteraction = FoodOverhaul.foodInteraction;
     GUIuse          = FoodOverhaul.GUIuse;
     selfCollider    = GetComponent <Collider>();
 }