Exemple #1
0
        // Use this for initialization
        void Awake()
        {
            if (objectHiter == null)
            {
                _ChecksSetting("objectHiter not setting", true);
            }

            JetPointsRenderController jcontroller = JetPointsRenderController.instance;

            if (jcontroller == null)
            {
                jcontroller = Instantiate(objectJetController).GetComponent <JetPointsRenderController>();
            }
            if (jcontroller != null)
            {
                jPrepoping = jcontroller.GetPrePop();
                if (jPrepoping == null)
                {
                    _ChecksSetting("doesnt get JetPrepoping.", false);
                }
            }
            else
            {
                _ChecksSetting("the objectJetController doesnot contain JettingController.cs", false);
            }
        }
        void Awake()
        {
            if (projectSystem == null)
            {
                _CheckSetting("not set project system", true);
            }
            projectSystem.gameObject.SetActive(false);

            if (lineRenderer == null)
            {
                _CheckSetting("not set lineRenderer", false);
            }

            JetPointsRenderController jetController = JetPointsRenderController.instance;

            if (jetController == null)
            {
                jetController = Instantiate(jettingController).GetComponent <JetPointsRenderController>();
            }
            if (jettingController != null)
            {
                jPrepoping = jetController.GetPrePop();
            }
            else
            {
                _CheckSetting("not set jet controller", true);
            }
        }
Exemple #3
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         if (instance != this)
         {
             Destroy(this);
         }
     }
 }
        // Use this for initialization
        void Start()
        {
            jprcontroller = JetPointsRenderController.instance;

            if (jprcontroller == null)
            {
                _CheckSetting("JetPointsRenderController.cs not found", true);
            }

            if (shootAI == null)
            {
                _CheckSetting("doesnt set the ShootAI", true);
            }
            forceAreaSize = shootAI.transform.localScale.x;

            if (ballIntersection == null)
            {
                _CheckSetting("dosent set the ball intersection", true);
            }

            // Register the forcasting result.
            Shoot.EventShoot += Forcast;
        }