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);
            }
        }
        public void Forcast()
        {
            JetPoint point = new JetPoint(true,
                                          Time.time + shootAI.GetRemainTime,
                                          force,
                                          forceInterval,
                                          forceAreaSize,
                                          forceType,
                                          shootAI._ballTarget);

            JetPrePoping prepoing = jprcontroller.GetPrePop();

            prepoing.jPoints.listPoint.Add(point);
            prepoing.PrePoping();
        }