コード例 #1
0
        void Awake()
        {
            driver  = GetComponent <Driver>();
            scanner = GetComponentInChildren <Scanner>();
            turner  = GetComponent <Turner>();
            health  = GetComponent <Health>();
            shooter = GetComponent <Shooter>();
            sr      = GetComponent <SpriteRenderer>();

            vm = new VirtualMachine(this);

            health.OnDisable += HandleDisabled;

            clockTimer = clockInterval;
        }