コード例 #1
0
ファイル: Bounce.cs プロジェクト: schonstal/madness
 void Start()
 {
     manager = soundTarget.GetComponent<SoundManager>() as SoundManager;
     originalScale = transform.localScale;
     originalLocalPosition = transform.localPosition;
     ragePixel = GetComponent<RagePixelSprite>();
 }
コード例 #2
0
    void Start()
    {
        //Load GFX
        ragePixel = GetComponent<RagePixelSprite>();

        transform.Rotate(Vector3.up,rotation);
    }
コード例 #3
0
 void Start()
 {
     ragePixel        = GetComponent <RagePixelSprite>();
     player           = GetComponent <PlayerScript>();
     controllerNumber = player.getControllerNumber();
     health           = maxHealth;
 }
コード例 #4
0
ファイル: PlayerController.cs プロジェクト: derosa/ld24
 void Start()
 {
     Physics.gravity = new Vector3 (0f, -980f, 0f);
     initialPosition = transform.position;
     rage = GetComponent<RagePixelSprite> ();
     controller = GetComponent<CharacterController>();
 }
コード例 #5
0
    void Start()
    {
        //Load GFX
        ragePixel = GetComponent <RagePixelSprite>();


        transform.Rotate(Vector3.up, rotation);
    }
コード例 #6
0
ファイル: Animation.cs プロジェクト: schonstal/madness
 public Animation(IRagePixel rage, string name, int[] frameArray, float framerate, bool loop = true)
 {
     ragePixel = rage;
     spriteName = name;
     frames = frameArray;
     frameTime = 1/framerate;
     loops = loop;
 }
コード例 #7
0
ファイル: PrincessController.cs プロジェクト: derosa/ld24
 public void Restart()
 {
     rage = GetComponent<RagePixelSprite> ();
     rage.PlayNamedAnimation ("idle");
     hair = transform.GetChild (0).gameObject;
     hairRage = hair.GetComponent<RagePixelSprite> ();
     hair.active = false;
 }
コード例 #8
0
ファイル: Scene09_CatController.cs プロジェクト: derosa/ld24
    void Start()
    {
        player = GameObject.FindGameObjectWithTag ("Player");
        direction = (player.transform.position - transform.position);
        direction.Normalize ();
        direction.y = 0.0f;

        rage = GetComponent<RagePixelSprite> ();
        rage.SetTintColor (ColorUtils.RandomColor ());
        rage.PlayNamedAnimation ("idle");

        seekTime = Time.time + Random.Range (0f, 5.0f);
    }
コード例 #9
0
ファイル: SharkMover.cs プロジェクト: jrmullins/ludumdare29
    // Use this for initialization
    void Start()
    {
        currentSpeed = swimSpeed;
        rotator = Vector2.zero;
        ragePixel = GetComponent<RagePixelSprite> ();
        ragePixel.PlayNamedAnimation ("Idle", false);
        goingLeft = true;
        mouthLeft = GameObject.Find ("Mouth Left");
        mouthRight = GameObject.Find ("Mouth Right");
        body = GameObject.FindGameObjectWithTag ("Body");
        if (!body || !mouthLeft || !mouthRight)
            Debug.LogError ("MISSING MOUTH OR BODY");

        mouthLeft.SetActive (true);
        mouthRight.SetActive (false);
    }
コード例 #10
0
ファイル: Walker.cs プロジェクト: schonstal/madness
 void Start()
 {
     ragePixel = GetComponent<RagePixelSprite>();
 }
コード例 #11
0
 void Start()
 {
     ragePixel = GetComponent<RagePixelSprite>();
     player = GetComponent<PlayerScript>();
     controllerNumber = player.getControllerNumber();
     health=maxHealth;
 }
コード例 #12
0
 void Start()
 {
     ragePixel = GetComponent <RagePixelSprite>();
     ragePixel.SetHorizontalFlip(false);
     ragePixel.PlayNamedAnimation("StayToward", false);
 }
コード例 #13
0
ファイル: Blinker.cs プロジェクト: jrmullins/ludumdare29
 // Use this for initialization
 void Start()
 {
     blinking = false;
     isColored = false;
     rps = GetComponent<RagePixelSprite> ();
 }
コード例 #14
0
 void Start()
 {
     ragePixel = GetComponent <RagePixelSprite>();
     ragePixel.PlayNamedAnimation("WALK", false);
 }
コード例 #15
0
ファイル: Walker.cs プロジェクト: hagura/unity_chiruno04
 void Start()
 {
     ragePixel = GetComponent <RagePixelSprite>();
 }
コード例 #16
0
 // Use this for initialization
 void Start()
 {
     ragePixel = GetComponent<RagePixelSprite> ();
     ragePixel.PlayNamedAnimation("Swim", false);
 }
コード例 #17
0
ファイル: BabyScript.cs プロジェクト: jacol/firstPixelGame
 // Use this for initialization
 void Start()
 {
     _ragePixel = GetComponent<RagePixelSprite>();
     _ragePixel.PlayNamedAnimation("sleep");
 }
コード例 #18
0
ファイル: Walker.cs プロジェクト: somelun/ld27
 void Start()
 {
     ragePixel = GetComponent <RagePixelSprite>();
     audio.PlayOneShot(arr);
 }
コード例 #19
0
ファイル: AnimationManager.cs プロジェクト: schonstal/madness
 public void AddAnimation(string name, int[] frames, float framerate, bool loop = true)
 {
     ragePixel = GetComponent<RagePixelSprite>();
      animations.Add(name, new Animation(ragePixel, spriteName, frames, framerate, loop));
 }
コード例 #20
0
ファイル: Dinamite.cs プロジェクト: derosa/ld24
 void Start()
 {
     rage = GetComponent<RagePixelSprite> ();
     rage.PlayNamedAnimation("idle");
 }