Пример #1
0
 // Use this for initialization
 void Start()
 {
     // TODO
     this.timeline        = GameObject.Find("Timeline").GetComponent <TimelineMono>().Timeline;
     this.inputBuffer     = GameObject.Find("GlobalInputCache").GetComponent <GlobalInputCache>().InputBuffer;
     this.contiguousInput = GameObject.Find("GlobalInputCache").GetComponent <ContiguousInputSave>();
 }
Пример #2
0
 void Start()
 {
     this.contiguousInput = GameObject.Find("GlobalInputCache").GetComponent <ContiguousInputSave>();
     this.globalInput     = GameObject.Find("GlobalInputCache").GetComponent <GlobalInputCache>();
     this.playerInput     = GameObject.Find("GlobalInputCache").GetComponent <PlayerInput>();
     this.movement        = this.GetComponent <PlayerMovement>();
     this.em = this.GetComponent <EntityMove>();
 }
Пример #3
0
        private void Start()
        {
            this.input = GameObject.Find("GlobalInputCache").GetComponent <ContiguousInputSave>();
            var renderer = this.GetComponent <Renderer>();

            this.startTime = Time.time;
            renderer.material.SetFloat("_StartTime", this.startTime);
            renderer.material.SetFloat("_ChargeTime", this.Duration);
            this.transform.localScale = Vector3.one * Scale;
            this.startTime            = Time.time;
            this.timeElapsed          = 0f;
        }